<template>
  <el-row :gutter="20">
    <el-col :span="6" v-for="item in list" :key="item.id">
      <div class="grid-content bg-purple">
        <div>
          <!-- <i
            class="iconfont"
            :class="item.icon"
            :style="{ color: item.color }"
          ></i> -->
          <img :src="item.url" alt="" />
        </div>
        <div>
          <p>{{ item.text }}</p>
          <h3>{{ item.num }}</h3>
        </div>
      </div>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="less" scoped>
.bg-purple {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  padding: 20px 0;

  i {
    font-size: 40px;
    color: skyblue;
  }

  p {
    color: #666;
    margin-bottom: 10px;
  }

  h3 {
    font-weight: 700;
  }

  img {
    width: 40px;
  }
}
.grid-content {
  border-radius: 4px;
}
</style>
